<?php

//decode by 012wz.com QQ:800083075
if (!defined('IN_IA')) {
	die('Access Denied');
}
class GoldshopWeb extends Plugin
{
	protected $set = null;
	public function __construct()
	{      
		parent::__construct('goldshop');
		$this->set = $this->getSet();
	}
	public function index()
	{
		global $_W;
		if (cv('creditshop.cover')) {
			header('location: ' . $this->createPluginWebUrl('goldshop/cover'));
			die;
		} else {
			if (cv('creditshop.goods')) {
				header('location: ' . $this->createPluginWebUrl('goldshop/goods'));
				die;
			} else {
				if (cv('creditshop.category')) {
					header('location: ' . $this->createPluginWebUrl('goldshop/category'));
					die;
				} else {
					if (cv('creditshop.adv')) {
						header('location: ' . $this->createPluginWebUrl('goldshop/adv'));
						die;
					} else {
						if (cv('creditshop.log.view0')) {
							header('location: ' . $this->createPluginWebUrl('goldshop/log'));
							die;
						} else {
							if (cv('creditshop.log.view1')) {
								header('location: ' . $this->createPluginWebUrl('goldshop/log', array('type' => 1)));
								die;
							} else {
								if (cv('creditshop.notice')) {
									header('location: ' . $this->createPluginWebUrl('goldshop/notice'));
									die;
								} else {
									if (cv('creditshop.set')) {
										header('location: ' . $this->createPluginWebUrl('goldshop/set'));
										die;
                                                                        }else {
                                                                            	if (cv('creditshop.log.view0')) {
                                                                                        header('location: ' . $this->createPluginWebUrl('goldshop/recharge_log'));
                                                                                        die;
                                                                                }else {
                                                                                    if (cv('creditshop.log.view0')) {
                                                                                        header('location: ' . $this->createPluginWebUrl('goldshop/give_log'));
                                                                                        die;
                                                                                     }else{
                                                                                        if(cv('creditshop.log.view0')){
                                                                                        header('location: ' . $this->createPluginWebUrl('goldshop/exchange_log'));
                                                                                        die; 
                                                                                        } 
                                                                                     }
                                                                                }
                                                                        }
								}
							}
						}
					}
				}
			}
		}
	}
	public function cover()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
	public function category()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
	public function goods()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
	public function adv()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
	public function log()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
        public function recharge_log()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
        public function give_log()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
        public function exchange_log()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
	public function notice()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
	public function set()
	{
		$this->_exec_plugin(__FUNCTION__);
	}
}